package org.javaforever.cookieshop.utils;

import java.util.Base64;

public class ImageUtil {
    public static String encodeToBase64(byte[] bytes) {
    	if (bytes != null && bytes.length > 20)
        return Base64.getEncoder().encodeToString(bytes);
    	else return "";
    }
}
